<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'edit';
$return=array();
if($_RQ['op']=='edit'){
	$item=$this->plugin_setting('search');
	$item['keyword']=$item['keyword']?$item['keyword']:'休闲套装女;小白鞋男;女士保暖裤;平衡车;梳妆台';
    $return['item']=$item;
	$htmls=array(
		'type'=>'edit',
		'post'=>'post',
		'desc'=>'搜索设置',
		'edit'=>array(
				array('type'=>'text','name'=>'keyword','title'=>'热门关键词','help'=>'用英文‘;’隔开，例如：休闲套装女;小白鞋男;女士保暖裤;平衡车;梳妆台'),		
			),
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$item=$this->plugin_setting('search',$postdata);
	exi('设置成功');
}
?>